package com.smiier.skin.net;

import java.util.ArrayList;

import android.content.Context;
import cn.o.app.net.NetTask;

import com.smiier.skin.constant.Constant;
import com.smiier.skin.net.AnswerSessionReceivedTask.AnswerSessionReceivedRequest;
import com.smiier.skin.net.AnswerSessionReceivedTask.AnswerSessionReceivedResponse;
import com.smiier.skin.util.GlobalSettings;

/**
 * 确认获取会话
 * 
 * @author 杨文华
 * 
 */
public class AnswerSessionReceivedTask extends
		NetTask<AnswerSessionReceivedRequest, AnswerSessionReceivedResponse> {

	public static class AnswerSessionReceivedRequest extends ORequest {
		public long qid;
		public ArrayList<Long> ids;
		public String token;
		public String appname = Constant.APP_NAME;
	}

	public static class AnswerSessionReceivedResponse extends OResponse {
		public int Res;
	}

	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL + GlobalSettings.SERVER_URL_JOIN
				+ "?api=Answer.Session.Received";
		mRequestMethod = METHOD_GET;
	}

}
